/***********************************
* Name: InterOperacionUnaria.java
* Date: Oct 4, 2010
* @author martin
* Description:
***********************************/

package interCodeGen;


public class InterOperacionUnaria implements Cod3Dir{
    private String dir1 = "";
    private String dir2 = "";
    private String operador = "";

    //*****************************************
    //dir1 = operador dir2
    //*****************************************

    /*****************************************
     * InterOperacionUnaria
     * constructor
     *****************************************/
    public InterOperacionUnaria(String dir1, String operador, String dir2){
        this.dir1 = dir1;
        this.dir2 = dir2;
        this.operador = operador;
    }

    /*****************************************
     * getCodeString
     * @return the complete code of the Cod3Dir
     *****************************************/
    public String getCodeString() {
        return "\t"+this.getDir1()+" = "+this.getOperador()+" "+this.getDir2();
    }

    /*****************************************
     * @return the dir1
     *****************************************/
    public String getDir1() {
        return dir1;
    }

    /*****************************************
     * @return the dir2
     *****************************************/
    public String getDir2() {
        return dir2;
    }

    /*****************************************
     * @return the operador
     *****************************************/
    public String getOperador() {
        return operador;
    }

}